package cn.mysdp.biz.controller;


import cn.mysdp.biz.dto.request.*;
import cn.mysdp.biz.dto.response.*;
import cn.mysdp.biz.facade.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: SdpSqlWebBaseController
 * @Description:
 * @Author: SDP
 * @Date: 2021-10-30
 * @Version: 1.0
 * Table: sdp_sql
 * Comment:
 * 
 */
public class SdpSqlWebBaseController extends BaseController {
    @Autowired
    SdpSqlFacade service;

    public Integer addSdpSql(SdpSqlAddRequest request) throws Exception {
        return service.addSdpSql(request);
    }

    public Integer updateSdpSql(SdpSqlUpdateRequest request) throws Exception {
        return service.updateSdpSql(request);
    }

    public Integer deleteSdpSql(SdpSqlDeleteRequest request) throws Exception {
        return service.deleteSdpSql(request);
    }

    public SdpSqlQueryResponse querySdpSql(SdpSqlQueryRequest request) throws Exception {
        return service.querySdpSql(request);
    }

    public List<SdpSqlQueryResponse> listSdpSql(SdpSqlQueryRequest request) throws Exception {
        return service.listSdpSql(request);
    }

    public Integer countSdpSql(SdpSqlQueryRequest request) throws Exception {
        return service.countSdpSql(request);
    }

    public BaseStatResponse statSdpSql(SdpSqlQueryRequest request) throws Exception {
        return service.statSdpSql(request);
    }


    public Integer clone(BaseNameIdRequest request) throws Exception {
        return service.clone(request);
    }

}
